package com.sleepingcat.flutter_boost_dart.platform_view

import android.content.Context
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.StandardMessageCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory

/**
 * @作者 志浩
 * @时间 2025/10/3 12:53
 * @描述 TODO
 */
class NativeViewFactory(val binding: FlutterPlugin.FlutterPluginBinding) : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
    private val TAG = "NativeViewFactory"

    override fun create(context: Context, viewId: Int, args: Any?): PlatformView {
        val creationParams = args as? Map<String, Any>
        return NativeTextView(context, viewId, creationParams, binding)
    }
}